<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title></title>
    <script type="text/javascript">
   		document.addEventListener('plusready', function(){
   			//console.log("所有plus api都应该在此事件发生后调用，否则会出现plus is undefined。")
   		});
    </script>
	<link rel="stylesheet" href="assets/css/main.css" />
</head>
<body class="index">
<div id="page-wrapper">
	    <header id="header" class="alt">
	    	<h1 id="logo"><a href="index.html">Twenty <span>by HTML5 UP</span></a></h1>
	    	<nav id="nav">
	    		<nav id="nav">
	    			<ul>
	    				<li class="current"><a href="index.html">返回首页</a></li>
	    				<li class="current"><a href="login/NewLogin.html">退出登录</a></li>
	    				<li class="submenu">
	    					<a href="#" onclick="show(1)">基础数据管理</a>
	    					<ul>
	    						<li><a href="mainshow.html?id=1">市场信息查看</a></li>
	    						<li><a href="mainshow.html?id=2">脚标机信息查看</a></li>
	    						<li><a href="mainshow.html?id=3">ID卡数据查看</a></li>
	    						<li><a href="mainshow.html?id=4">销售终端信息查看</a></li>
	    						<li><a href="mainshow.html?id=5">禽类信息信息查看</a></li>
	    					</ul>
	    				</li>
	    				<li class="submenu">
	    					<a href="#">脚标机发放回收管理</a>
	    					<ul>
	    						<li><a href="mainshow.html?id=6">脚标机发放信息查看</a></li>
	    						<li><a href="mainshow.html?id=7">脚标机回收信息查看</a></li>
	    						<!--<li><a href="mainshow.html?id=8">脚标机用户更新管理</a></li>-->
	    					</ul>
	    				</li>
	    				<li class="submenu">
	    					<a href="#">脚标机监控</a>
	    					<ul>
	    						<li><a href="mainshow.html?id=9">脚标机监控信息查看</a></li>
	    						<li><a href="mainshow.html?id=10">报警记录信息查看</a></li>
	    					</ul>
	    				</li>
	    				<li class="submenu">
	    					<a href="#">脚标机报废维修管理</a>
	    					<ul>
	    						<li><a href="mainshow.html?id=11">脚标机报废信息查看</a></li>
	    						<li><a href="mainshow.html?id=12">脚标机维修信息查看</a></li>
	    					</ul>
	    				</li>
	    				<li class="submenu">
	    					<a href="#">ID卡发放回收管理</a>
	    					<ul>
	    						<li><a href="mainshow.html?id=15">ID卡发放记录信息查看</a></li>
	    						<li><a href="mainshow.html?id=16">ID卡回收记录信息查看</a></li>
	    					</ul>
	    				</li>
	    				<li class="submenu">
	    					<a href="#">条形码发放回收管理</a>
	    					<ul>
	    						<li><a href="mainshow.html?id=15">条形码发放信息查看</a></li>
	    						<li><a href="mainshow.html?id=16">条形码回收信息查看</a></li>
	    					</ul>
	    				</li>
	    				<li class="submenu">
	    					<a href="#">贴标信息管理</a>
	    					<ul>
	    						<li><a href="mainshow.html?id=17">贴标信息查看</a></li>
	    					</ul>
	    				</li>
	    			</ul>
	    	</nav>
	    </header>
		<section id="banner">
			<div class="inner">
				<header>
					<h2 id="title"></h2>
				</header>
	
			</div>
		</section>
	<!-- Main -->
	    <br /><br />
		<article id="main3">
			<header class="special container">
				<span class="icon featured fa-check"></span>
				<br />
				<div class="row 50%"  style="margin-top: 1.25rem;margin-left: 0.3125rem;font-size:0.625rem;">
					<div id="search"></div>
					<table  id="tablezz" style="margin-top: 1.25rem;">
					<tr id="thname" style="font-size: 0.625rem;font-weight: bold;">
					    
					</tr>
					</table>
				</div>     
			</header>
		</article>
	<!-- Footer -->
		<footer id="footer">
			<ul class="copyright">
				<li>Copyright&copy;2020.</li>
				<li>By Hanqy kabit@sina.cn.</li>
			</ul>
		</footer>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/jquery.scrollgress.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<script src="https://cdn.bootcss.com/echarts/4.2.1-rc1/echarts.min.js"></script>
<script>
	if(window.location.search.substring(4)==1){
		var datalist=[];
		$("#title").append("市场信息查看")
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入市场名称" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>市场ID</th>
		<th>市场名称</th>
		<th>市场地址</th>
		<th>负责人</th>
		<th>创建者</th>
		`)
		
		function start(){
			
		$.ajax({
		     url: URL+"/slaughterHouse",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data.object)
				  datalist=data.object;
				  for(var i=0;i<data.object.length;i++){
					 $("#tablezz").append(`
					 <tr>
					 <th>`+data.object[i].id+`</th>
					 <th>`+data.object[i].name+`</th>
					 <th style="max-width:6.875rem;">`+datalist[i].province+datalist[i].city+datalist[i].district+datalist[i].address+`</th>
					 <th>`+data.object[i].userName+`</th>
					 <th>`+data.object[i].creatBy+`</th>
					 </tr>
					 `) 
				  }
		     }
		});
		}
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
					<th>市场ID</th>
					<th>市场名称</th>
					<th>市场地址</th>
					<th>负责人</th>
					<th>创建者</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].name){
							 flag=1;
							 $("#tablezz").empty();
							 $("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							$("#thname").append(`
							<th>市场ID</th>
							<th>市场名称</th>
							<th>市场地址</th>
							<th>负责人</th>
							<th>创建者</th>
							`)
							$("#tablezz").append(`
							<tr>
							<th>`+datalist[i].id+`</th>
							<th>`+datalist[i].name+`</th>
							<th style="max-width:6.875rem;">`+datalist[i].province+datalist[i].city+datalist[i].district+datalist[i].address+`</th>
							<th>`+datalist[i].userName+`</th>
							<th>`+datalist[i].creatBy+`</th>
							</tr>
							`) 
						 }
					 }
					 if(flag==0) alert("未找到该市场");
				}
			}
	}else if(window.location.search.substring(4)==2){
		var datalist=[];
		$("#title").append("脚标机信息查看")
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入市场名称" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>市场ID</th>
		<th>市场名称</th>
		<th>市场地址</th>
		<th>负责人</th>
		<th>创建者</th>
		`)
		
		function start(){
			
		$.ajax({
		     url: URL+"/slaughterHouse",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data.object)
				  datalist=data.object;
				  for(var i=0;i<data.object.length;i++){
					 $("#tablezz").append(`
					 <tr>
					 <th>`+data.object[i].id+`</th>
					 <th>`+data.object[i].name+`</th>
					 <th style="max-width:6.875rem;">`+datalist[i].province+datalist[i].city+datalist[i].district+datalist[i].address+`</th>
					 <th>`+data.object[i].userName+`</th>
					 <th>`+data.object[i].creatBy+`</th>
					 </tr>
					 `) 
				  }
		     }
		});
		}
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					 $("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
					<th>市场ID</th>
					<th>市场名称</th>
					<th>市场地址</th>
					<th>负责人</th>
					<th>创建者</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].name){
							 flag=1;
							 $("#tablezz").empty();
							 $("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							$("#thname").append(`
							<th>市场ID</th>
							<th>市场名称</th>
							<th>市场地址</th>
							<th>负责人</th>
							<th>创建者</th>
							`)
							$("#tablezz").append(`
							<tr>
							<th>`+datalist[i].id+`</th>
							<th>`+datalist[i].name+`</th>
							<th style="max-width:6.875rem;">`+datalist[i].province+datalist[i].city+datalist[i].district+datalist[i].address+`</th>
							<th>`+datalist[i].userName+`</th>
							<th>`+datalist[i].creatBy+`</th>
							</tr>
							`) 
						 }
					 }
					 if(flag==0) alert("未找到该市场");
				}
			}
	}else if(window.location.search.substring(4)==3){
		var datalist=[];
		$("#title").append("ID卡数据查看")
		
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入ID卡编号" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>ID卡编号</th>
		<th>状态</th>
		<th>创建者ID</th>
		<th>创建者名称</th>
		`)
		
		function start(){
			
		$.ajax({
		     url: URL+"/idCard",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data.object)
				  datalist=data.object;
				  for(var i=0;i<data.object.length;i++){
					  var state;
					  if(data.object[i].state==0){
					  		state="在用"
					  }else if(data.object[i].state==1){
					  		state="待用"
					  }else{
					  		state="作废"
					  }
					 $("#tablezz").append(`
					 <tr>
					 <th>`+data.object[i].number+`</th>
					 <th>`+state+`</th>
					 <th>`+(datalist[i].creatBy==null?'无':datalist[i].creatBy.substr(0,20))+(datalist[i].creatBy.substr(10,11)==0?' ':'…')+`</th>
					 <th>`+data.object[i].userName+`</th>
					 </tr>
					 `) 
				  }
		     }
		});
		}
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
					<th>ID卡编号</th>
					<th>状态</th>
					<th>创建者ID</th>
					<th>创建者名称</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].number){
							 flag=1;
							 var state;
							 if(datalist[i].state==0){
							 		state="在用"
							 }else if(datalist[i].state==1){
							 		state="待用"
							 }else{
							 		state="作废"
							 }
							 $("#tablezz").empty();
							 $("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							$("#thname").append(`
							<th>ID卡编号</th>
							<th>状态</th>
							<th>创建者ID</th>
							<th>创建者名称</th>
							`)
							$("#tablezz").append(`
							<tr>
							<th>`+datalist[i].number+`</th>
							<th>`+state+`</th>
							<th>`+(datalist[i].creatBy==null?'无':datalist[i].creatBy.substr(0,20))+(datalist[i].creatBy.substr(10,11)==0?' ':'…')+`</th>
							<th>`+datalist[i].userName+`</th>
							</tr>
							`) 
						 }
					 }
					 if(flag==0) alert("未找到该ID卡");
				}
			}
	}else if(window.location.search.substring(4)==4){
		var datalist=[];
        $("#title").append("销售终端信息查看")  
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入销售终端编号" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>销售端ID</th>
		<th>销售端编号</th>
		<th>名称</th>
		<th>地址</th>
		`)
		
		function start(){
			
		$.ajax({
		     url: URL+"/salesTerminal",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data.object)
				  datalist=data.object;
				  for(var i=0;i<data.object.length;i++){
					 
					 $("#tablezz").append(`
					 <tr>
					 <th>`+data.object[i].id+`</th>
					 <th>`+data.object[i].number+`</th>
					 <th style="max-width:6.875rem;">`+data.object[i].name+`</th>
					 <th style="max-width:6.875rem;">`+data.object[i].addr+`</th>
					 </tr>
					 `) 
				  }
		     }
		});
		}
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
					<th>销售终端ID</th>
					<th>销售终端编号</th>
					<th>名称</th>
					<th>地址</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].number){
							 flag=1;
						    $("#tablezz").empty();
							$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							$("#thname").append(`
							<th>销售终端ID</th>
							<th>销售终端编号</th>
							<th>名称</th>
							<th>地址</th>
							`)
							$("#tablezz").append(`
							<tr>
							<th>`+datalist[i].id+`</th>
							<th>`+datalist[i].number+`</th>
							<th style="max-width:6.875rem;">`+datalist[i].name+`</th>
							<th style="max-width:6.875rem;">`+datalist[i].addr+`</th>
							</tr>
							`) 
						 }
					 }
					 if(flag==0) alert("未找到该终端");
				}
			}
	}else if(window.location.search.substring(4)==5){
		$("#title").append("禽类信息信息查看")
		var datalist=[];
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入禽类编号" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>ID</th>
		<th>编号</th>
		<th>品种</th>
		<th>详情</th>
		<th>父类ID</th>
		<th>父类名称</th>
		<th>市场ID</th>
		`)
		
		function start(){
			
		$.ajax({
		     url: URL+"/poultryCategory",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data.object)
				  datalist=data.object;
				  for(var i=0;i<data.object.length;i++){
					 
					 $("#tablezz").append(`
					 <tr>
					 <th>`+data.object[i].id+`</th>
					 <th>`+data.object[i].number+`</th>
					 <th>`+data.object[i].name+`</th>
					 <th>`+data.object[i].detail+`</th>
					 <th>`+data.object[i].parentId+`</th>
					 <th>`+data.object[i].fatherName+`</th>
					 <th>`+data.object[i].slaughterHouseId+`</th>
					 </tr>
					 `) 
				  }
		     }
		});
		}
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
					<th>ID</th>
					<th>编号</th>
					<th>品种</th>
					<th>详情</th>
					<th>父类ID</th>
					<th>父类名称</th>
					<th>市场ID</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].number){
							 flag=1;
						    $("#tablezz").empty();
							$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							$("#thname").append(`
							<th>ID</th>
							<th>编号</th>
							<th>品种</th>
							<th>详情</th>
							<th>父类ID</th>
							<th>父类名称</th>
							<th>市场ID</th>
							`)
							$("#tablezz").append(`
							<tr>
							<th>`+datalist[i].id+`</th>
							<th>`+datalist[i].number+`</th>
							<th>`+datalist[i].name+`</th>
							<th>`+datalist[i].detail+`</th>
							<th>`+datalist[i].parentId+`</th>
							<th>`+datalist[i].fatherName+`</th>
							<th>`+datalist[i].slaughterHouseId+`</th>
							</tr>
							`) 
						 }
					 }
					 if(flag==0) alert("未找到该禽类信息");
				}
			}
	}else if(window.location.search.substring(4)==6){
		
		$("#title").append("脚标机发放信息查询")
		var datalist=[];
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入脚标机编号" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>脚标机ID</th>
		<th>发放档口</th>
		<th>发放时间</th>
		<th>发放人员</th>
		<th>纸质协议编号</th>
		<th>详情</th>
		`)
		
		function start(){
			
		$.ajax({
		     url: URL+"/barcodeMachineGrant",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data.object)
				  datalist=data.object;
				  for(var i=0;i<data.object.length;i++){
					 
					 $("#tablezz").append(`
					 <tr>
					 <th>`+data.object[i].barcodeMachineId+`</th>
					 <th>`+data.object[i].stallsName+`</th>
					 <th>`+data.object[i].grantDate+`</th>
					 <th>`+data.object[i].deliverName+`</th>
					 <th>`+data.object[i].agreementNumber+`</th>
					 <th><a href="mainform.html?id=4&sbztId=`+data.object[i].id+`">详情</a></th>
					 </tr>
					 `) 
				  }
		     }
		});
		}
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
					<th>脚标机ID</th>
					<th>发放档口</th>
					<th>发放时间</th>
					<th>发放人员</th>
					<th>纸质协议编号</th>
					<th>详情</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].barcodeMachineId){
							 flag=1;
						    $("#tablezz").empty();
							$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							$("#thname").append(`
							<th>脚标机ID</th>
							<th>发放档口</th>
							<th>发放时间</th>
							<th>发放人员</th>
							<th>纸质协议编号</th>
							<th>详情</th>
							`)
							$("#tablezz").append(`
						<tr>
						<th>`+datalist[i].barcodeMachineId+`</th>
						<th>`+datalist[i].stallsName+`</th>
						<th>`+datalist[i].grantDate+`</th>
						<th>`+datalist[i].deliverName+`</th>
						<th>`+datalist[i].agreementNumber+`</th>
						<th><a href="mainform.html?id=4&sbztId=`+datalist[i].id+`">详情</a></th>
						</tr>
							`) 
						 }
					 }
					 if(flag==0) alert("未找到该脚标机发放信息");
				}
			}
	}else if(window.location.search.substring(4)==7){
	$("#title").append("脚标机回收信息查询")
	var datalist=[];
	$("#search").append(`
	<div class="row 50%">
		<div class="6u 12u(mobile)">
			<input id="searchV" type="text" name="name" placeholder="输入脚标机编号" value=""/>
		</div>
		<div class="6u 12u(mobile)">
			<footer>
				<ul class="buttons vertical">
					<li><a onclick="searchV()" class="button fit">查询</a></li>
				</ul>
			</footer>
		</div>
	</div>
	`)
	
	$("#thname").append(`
	<th>脚标机ID</th>
	<th>回收档口ID</th>
	<th>回收时间</th>
	<th>回收人员</th>
	<th>押金退回（元）</th>
	<th>详情</th>
	`)
	
	function start(){
		
	$.ajax({
	     url: URL+"/barcodeMachineRecovery",
	     type: "get",
		 async:false,
	     success: function (data) {
	          console.log(data.object)
			  datalist=data.object;
			  for(var i=0;i<data.object.length;i++){
				 
				 $("#tablezz").append(`
				 <tr>
				 <th>`+data.object[i].barcodeMachineId+`</th>
				 <th>`+data.object[i].stallsId+`</th>
				 <th>`+data.object[i].recoveryDate+`</th>
				 <th>`+data.object[i].recyclingName+`</th>
				 <th>`+data.object[i].deposit+`</th>
				 <th><a href="mainform.html?id=5&sbztId=`+data.object[i].id+`">详情</a></th>
				 </tr>
				 `) 
			  }
	     }
	});
	}
	start();
	function searchV(){
			var flag=0;
			if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
				alert("请输入值");
				$("#tablezz").empty();
				$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
				$("#thname").append(`
				<th>脚标机ID</th>
				<th>回收档口</th>
				<th>回收时间</th>
				<th>回收人员</th>
				<th>押金退回（元）</th>
				<th>详情</th>
				`)
				start();
			}else{
				 for(var i=0;i<datalist.length;i++){
					 if($("#searchV").val()==datalist[i].barcodeMachineId){
						 flag=1;
					    $("#tablezz").empty();
						$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
						$("#thname").append(`
						<th>脚标机ID</th>
						<th>回收档口</th>
						<th>回收时间</th>
						<th>回收人员</th>
						<th>押金退回（元）</th>
						<th>详情</th>
						`)
						$("#tablezz").append(`
					<tr>
					<th>`+datalist[i].barcodeMachineId+`</th>
					<th>`+datalist[i].stallsId+`</th>
					<th>`+datalist[i].recoveryDate+`</th>
					<th>`+datalist[i].recyclingName+`</th>
					<th>`+datalist[i].deposit+`</th>
					<th><a href="mainform.html?id=5&sbztId=`+datalist[i].id+`">详情</a></th>
					</tr>
						`) 
					 }
				 }
				 if(flag==0) alert("未找到该脚标机回收信息");
			}
		}
	}else if(window.location.search.substring(4)==8){
		
	}else if(window.location.search.substring(4)==9){
		var datalist=[];
		$("#title").append("脚标机监控信息查看")
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入脚标机编号" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>脚标机编号</th>
		<th>登录时间</th>
		<th>在线状态</th>
		<th>条码剩余数量</th>
		<th>详情</th>
		`)
		function start(){
		$.ajax({
		     url: URL+"/findBarcodeMachineStatus",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data)
				  datalist=data;
				  for(var i=0;i<data.length;i++){
					  var state;
					  if(data[i].state==0){
						  state="离线"
					  }else if(data[i].state==1){
						  state="正常"
					  }else if(data[i].state==2){
						  state="卡纸"
					  }else{
						  state="缺纸"
					  }
					 $("#tablezz").append(`
					 <tr>
					 <th>`+data[i].barcodeMachineId.substr(0,6)+(data[i].barcodeMachineId.substr(6,7)==0?' ':'...')+`</th>
					 <th>`+data[i].createDate+`</th>
					 <th>`+state+`</th>
					 <th>`+data[i].barcodeSurplus+`</th>
					 <th><a href="mainform.html?id=3&sbztId=`+data[i].id+`">详情</a></th>
					 </tr>
					 `) 
				  }
		     }
		});
	    }
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
					<th>脚标机编号</th>
					<th>登录时间</th>
					<th>在线状态</th>
					<th>条码剩余数量</th>
					<th>详情</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].barcodeMachineId){
							 flag=1;
							 $("#tablezz").empty();
							 $("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							 $("#thname").append(`
							 <th>脚标机编号</th>
							 <th>登录时间</th>
							 <th>在线状态</th>
							 <th>条码剩余数量</th>
							 <th>详情</th>
							 `)
							 var state;
							 if(datalist[i].state==0){
							 		state="离线"
							 }else if(datalist[i].state==1){
							 		state="正常"
							 }else if(datalist[i].state==2){
							 		state="卡纸"
							 }else{
							 		state="缺纸"
							 }
							 $("#tablezz").append(`
							 <tr>
							 <th>`+datalist[i].barcodeMachineId.substr(0,6)+(datalist[i].barcodeMachineId.substr(6,7)==0?' ':'...')+`</th>
							 <th>`+datalist[i].createDate+`</th>
							 <th>`+state+`</th>
							 <th>`+datalist[i].barcodeSurplus+`</th>
							 <th><a href="mainform.html?id=3&sbztId=`+datalist[i].id+`">详情</a></th>
							 </tr>
							 `) 
						 }
					 }
					 if(flag==0) alert("未找到该机器");
				}
			}
	}else if(window.location.search.substring(4)==10){
		var datalist=[];
			
		$("#title").append("报警记录信息查看")
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入脚标机编号" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>脚标机编号</th>
		<th>故障信息</th>
		<th>故障状态</th>
		<th>故障时间</th>
		<th>是否已读</th>
		`)
		
		function start(){
			
		$.ajax({
		     url: URL+"/MachineAlert/all",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data.object)
				  datalist=data.object;
				  for(var i=0;i<data.object.length;i++){
					 $("#tablezz").append(`
					 <tr>
					 <th>`+data.object[i].barcodeMachineId+`</th>
					 <th>`+data.object[i].faultInfo+`</th>
					 <th>`+(data.object[i].state==0?"未处理":"已处理")+`</th>
					 <th>`+data.object[i].faultTime+`</th>
					 <th>`+(data.object[i].isRead==0?"未读":"已读")+`</th>
					 </tr>
					 `) 
				  }
		     }
		});
		}
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
					<th>脚标机编号</th>
					<th>故障信息</th>
					<th>故障状态</th>
					<th>故障时间</th>
					<th>是否已读</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].barcodeMachineId){
							 flag=1;
							 $("#tablezz").empty();
							 $("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							 $("#thname").append(`
							 <th>脚标机编号</th>
							 <th>故障信息</th>
							 <th>故障状态</th>
							 <th>故障时间</th>
							 <th>是否已读</th>
							 `)
							$("#tablezz").append(`
							<tr>
							<th>`+datalist[i].barcodeMachineId+`</th>
							<th>`+datalist[i].faultInfo+`</th>
							<th>`+(datalist[i].state==0?"未处理":"已处理")+`</th>
							<th>`+datalist[i].faultTime+`</th>
							<th>`+(datalist[i].isRead==0?"未读":"已读")+`</th>
							</tr>
							`) 
						 }
					 }
					 if(flag==0) alert("未找到该机器");
				}
			}
		
	}else if(window.location.search.substring(4)==11){
		$("#title").append("脚标机报废信息查看")
		var datalist=[];
			
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入脚标机编号" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>脚标机编号</th>
		<th>报废原因</th>
		<th>报废时间</th>
		<th>管理人员</th>
		`)
		
		function start(){
			
		$.ajax({
		     url: URL+"/machineScrap",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data.object)
				  datalist=data.object;
				  for(var i=0;i<data.object.length;i++){
					 $("#tablezz").append(`
					 <tr>
					 <th>`+data.object[i].barcodeMachineId+`</th>
					 <th>`+data.object[i].scrapPerson+`</th>
					 <th>`+data.object[i].scrapDate+`</th>
					 <th>`+data.object[i].managementName+`</th>
					 </tr>
					 `) 
				  }
		     }
		});
		}
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
					<th>脚标机编号</th>
					<th>报废原因</th>
					<th>报废时间</th>
					<th>管理人员</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].barcodeMachineId){
							 flag=1;
							 $("#tablezz").empty();
							 $("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							 $("#thname").append(`
							<th>脚标机编号</th>
							<th>报废原因</th>
							<th>报废时间</th>
							<th>管理人员</th>
							 `)
							$("#tablezz").append(`
							<tr>
							<th>`+datalist[i].barcodeMachineId+`</th>
							<th>`+datalist[i].scrapPerson+`</th>
							<th>`+datalist[i].scrapDate+`</th>
							<th>`+datalist[i].managementName+`</th>
							</tr>
							`) 
						 }
					 }
					 if(flag==0) alert("未找到该机器");
				}
			}
	}else if(window.location.search.substring(4)==12){
		$("#title").append("脚标机维修信息查看")
		var datalist=[];
			
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入脚标机编号" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>脚标机ID</th>
		<th>送修目的地</th>
		<th>送修人员</th>
		<th>送修时间</th>
		<th>备注</th>
		`)
		
		function start(){
			
		$.ajax({
		     url: URL+"/machineRepair",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data.object)
				  datalist=data.object;
				  for(var i=0;i<data.object.length;i++){
					 $("#tablezz").append(`
					 <tr>
					<th>`+data.object[i].barcodeMachineId+`</th>
					<th>`+data.object[i].repairAddr+`</th>
					<th>`+data.object[i].repairName+`</th>
					<th>`+data.object[i].repairDate+`</th>
					<th>`+data.object[i].msg+`</th>
					 </tr>
					 `) 
				  }
		     }
		});
		}
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
					<th>脚标机ID</th>
					<th>送修目的地</th>
					<th>送修人员</th>
					<th>送修时间</th>
					<th>备注</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].barcodeMachineId){
							 flag=1;
							 $("#tablezz").empty();
							 $("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							 $("#thname").append(`
							<th>脚标机ID</th>
							<th>送修目的地</th>
							<th>送修人员</th>
							<th>送修时间</th>
							<th>备注</th>
							 `)
							$("#tablezz").append(`
							<tr>
							<th>`+datalist[i].barcodeMachineId+`</th>
							<th>`+datalist[i].repairAddr+`</th>
							<th>`+datalist[i].repairName+`</th>
							<th>`+datalist[i].repairDate+`</th>
							<th>`+datalist[i].msg+`</th>
							</tr>
							`) 
						 }
					 }
					 if(flag==0) alert("未找到该机器");
				}
			}
	}else if(window.location.search.substring(4)==13){
		$("#title").append("ID卡发放记录信息查看")
		var datalist=[];
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入ID卡编号" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>ID卡编号</th>
		<th>发放人角色</th>
		<th>回收人角色</th>
		<th>发放时间</th>
		<th>发放人员</th>
		<th>详情</th>
		`)
		
		function start(){
			
		$.ajax({
		     url: URL+"/idCardGrant",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data.object)
				  datalist=data.object;
				  for(var i=0;i<data.object.length;i++){
					 
					 $("#tablezz").append(`
					 <tr>
					 <th>`+data.object[i].cardId+`</th>
					 <th>`+data.object[i].deliverRoteName+`</th>
					 <th>`+data.object[i].getRoteName+`</th>
					 <th>`+data.object[i].grantDate+`</th>
					 <th>`+data.object[i].deliverName+`</th>
					 <th><a href="mainform.html?id=6&sbztId=`+data.object[i].id+`">详情</a></th>
					 </tr>
					 `) 
				  }
		     }
		});
		}
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
					<th>ID卡编号</th>
					<th>发放人角色</th>
					<th>回收人角色</th>
					<th>发放时间</th>
					<th>发放人员</th>
					<th>详情</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].cardId){
							 flag=1;
						    $("#tablezz").empty();
							$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							$("#thname").append(`
							<th>ID卡编号</th>
							<th>发放人角色</th>
							<th>回收人角色</th>
							<th>发放时间</th>
							<th>发放人员</th>
							<th>详情</th>
							`)
							$("#tablezz").append(`
						<tr>
						<th>`+datalist[i].cardId+`</th>
						<th>`+datalist[i].deliverRoteName+`</th>
						<th>`+datalist[i].getRoteName+`</th>
						<th>`+datalist[i].grantDate+`</th>
						<th>`+datalist[i].deliverName+`</th>
						<th><a href="mainform.html?id=6&sbztId=`+datalist[i].id+`">详情</a></th>
						</tr>
							`) 
						 }
					 }
					 if(flag==0) alert("未找到该ID卡信息");
				}
			}
	}else if(window.location.search.substring(4)==14){
		$("#title").append("ID卡回收记录信息查看")
		var datalist=[];
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入ID卡编号" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>ID卡编号</th>
		<th>回收人角色</th>
		<th>领取人角色</th>
		<th>回收时间</th>
		<th>回收人员</th>
		<th>详情</th>
		`)
		
		function start(){
			
		$.ajax({
		     url: URL+"/idCardRecovery",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data.object)
				  datalist=data.object;
				  for(var i=0;i<data.object.length;i++){
					 
					 $("#tablezz").append(`
					 <tr>
					 <th>`+data.object[i].cardId+`</th>
					 <th>`+data.object[i].recyclingRoteName+`</th>
					 <th>`+data.object[i].sendRoteName+`</th>
					 <th>`+data.object[i].recoveryDate+`</th>
					 <th>`+data.object[i].recyclingName+`</th>
					 <th><a href="mainform.html?id=7&sbztId=`+data.object[i].id+`">详情</a></th>
					 </tr>
					 `) 
				  }
		     }
		});
		}
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
					<th>ID卡编号</th>
					<th>回收人角色</th>
					<th>领取人角色</th>
					<th>回收时间</th>
					<th>回收人员</th>
					<th>详情</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].cardId){
							 flag=1;
						    $("#tablezz").empty();
							$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							$("#thname").append(`
						<th>ID卡编号</th>
						<th>回收人角色</th>
						<th>领取人角色</th>
						<th>回收时间</th>
						<th>回收人员</th>
						<th>详情</th>
							`)
							$("#tablezz").append(`
						<tr>
						<th>`+datalist[i].cardId+`</th>
						<th>`+datalist[i].recyclingRoteName+`</th>
						<th>`+datalist[i].sendRoteName+`</th>
						<th>`+datalist[i].recoveryDate+`</th>
						<th>`+datalist[i].recyclingName+`</th>
						<th><a href="mainform.html?id=7&sbztId=`+datalist[i].id+`">详情</a></th>
						</tr>
							`) 
						 }
					 }
					 if(flag==0) alert("未找到该ID卡信息");
				}
			}
	}else if(window.location.search.substring(4)==15){
		$("#title").append("条形码发放记录查看")
		var datalist=[];
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入发放档口" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>发放档口</th>
		<th>发放时间</th>
		<th>发放数量</th>
		<th>开始编号</th>
		<th>结束编号</th>
		<th>详情</th>
		`)
		
		function start(){
			
		$.ajax({
		     url: URL+"/findBarcodeGrantAll",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data)
				  datalist=data;
				  for(var i=0;i<data.length;i++){
					 
					 $("#tablezz").append(`
					 <tr>
					 <th>`+data[i].stallsName+`</th>
					 <th>`+data[i].grantDate+`</th>
					 <th>`+data[i].grantCount+`</th>
					 <th>`+data[i].startNumber+`</th>
					 <th>`+data[i].endNumber+`</th>
					 <th><a href="mainform.html?id=8&sbztId=`+data[i].id+`">详情</a></th>
					 </tr>
					 `) 
				  }
		     }
		});
		}
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
					<th>发放档口</th>
					<th>发放时间</th>
					<th>发放数量</th>
					<th>开始编号</th>
					<th>结束编号</th>
					<th>详情</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].stallsName){
							 flag=1;
						    $("#tablezz").empty();
							$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							$("#thname").append(`
							<th>发放档口</th>
							<th>发放时间</th>
							<th>发放数量</th>
							<th>开始编号</th>
							<th>结束编号</th>
							<th>详情</th>
							`)
							$("#tablezz").append(`
						<tr>
						<th>`+datalist[i].stallsName+`</th>
						<th>`+datalist[i].grantDate+`</th>
						<th>`+datalist[i].grantCount+`</th>
						<th>`+datalist[i].startNumber+`</th>
						<th>`+datalist[i].endNumber+`</th>
						<th><a href="mainform.html?id=8&sbztId=`+datalist[i].id+`">详情</a></th>
						</tr>
							`) 
						 }
					 }
					 if(flag==0) alert("未找到该档口信息");
				}
			}
	}else if(window.location.search.substring(4)==16){
		$("#title").append("条形码回收记录查看")
		var datalist=[];
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入条形码ID" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>条形码ID</th>
		<th>发放档口</th>
		<th>回收时间</th>
		<th>回收人员</th>
		<th>退回数量</th>
		<th>详情</th>
		`)
		
		function start(){
			
		$.ajax({
		     url: URL+"/findBarcodeRecovery",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data)
				  datalist=data;
				  for(var i=0;i<data.length;i++){
					 
					 $("#tablezz").append(`
					 <tr>
					 <th>`+data[i].barcodeId+`</th>
					 <th>`+data[i].stallsName+`</th>
					 <th>`+data[i].recoveryDate+`</th>
					 <th>`+data[i].recyclingName+`</th>
					 <th>`+data[i].sendbackCount+`</th>
					 <th><a href="mainform.html?id=9&sbztId=`+data[i].id+`">详情</a></th>
					 </tr>
					 `) 
				  }
		     }
		});
		}
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
					<th>条形码ID</th>
					<th>发放档口</th>
					<th>回收时间</th>
					<th>回收人员</th>
					<th>退回数量</th>
					<th>详情</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].barcodeId){
							 flag=1;
						    $("#tablezz").empty();
							$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							$("#thname").append(`
							<th>条形码ID</th>
							<th>发放档口</th>
							<th>回收时间</th>
							<th>回收人员</th>
							<th>退回数量</th>
							<th>详情</th>
							`)
							$("#tablezz").append(`
						<tr>
						<th>`+datalist[i].barcodeId+`</th>
						<th>`+datalist[i].stallsName+`</th>
						<th>`+datalist[i].recoveryDate+`</th>
						<th>`+datalist[i].recyclingName+`</th>
						<th>`+datalist[i].sendbackCount+`</th>
						<th><a href="mainform.html?id=9&sbztId=`+datalist[i].id+`">详情</a></th>
						</tr>
							`) 
						 }
					 }
					 if(flag==0) alert("未找到该档口信息");
				}
			}
	}else if(window.location.search.substring(4)==17){
		$("#title").append("贴标信息查看")
		var datalist=[];
		$("#search").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input id="searchV" type="text" name="name" placeholder="输入条码编号" value=""/>
			</div>
			<div class="6u 12u(mobile)">
				<footer>
					<ul class="buttons vertical">
						<li><a onclick="searchV()" class="button fit">查询</a></li>
					</ul>
				</footer>
			</div>
		</div>
		`)
		
		$("#thname").append(`
		<th>条码编号</th>
		<th>贴标时间</th>
		<th>脚标机ID</th>
		<th>屠宰档口ID</th>
		<th>销售去向ID</th>
		<th>所属禽类</th>
		`)
		
		function start(){
			
		$.ajax({
		     url: URL+"/record",
		     type: "get",
			 async:false,
		     success: function (data) {
		          console.log(data)
				  datalist=data.object;
				  for(var i=0;i<data.object.length;i++){
					 
					 $("#tablezz").append(`
					 <tr>
					 <th>`+(data.object[i].barcodeNumber==null?'无':data.object[i].barcodeNumber.substr(0,10))+`</th>
					 <th>`+data.object[i].LabelingDate+`</th>
					 <th>`+data.object[i].barcodeMachineId+`</th>
					 <th>`+data.object[i].stallsId+`</th>
					 <th>`+data.object[i].salesTerminalId+`</th>
					 <th>`+data.object[i].poultryName+`</th>
					 </tr>
					 `) 
				  }
		     }
		});
		}
		start();
		function searchV(){
				var flag=0;
				if($("#searchV").val()==null||$("#searchV").val()==' '||$("#searchV").val()==""){
					alert("请输入值");
					$("#tablezz").empty();
					$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
					$("#thname").append(`
				<th>条码编号</th>
				<th>贴标时间</th>
				<th>脚标机ID</th>
				<th>屠宰档口ID</th>
				<th>销售去向ID</th>
				<th>所属禽类</th>
					`)
					start();
				}else{
					 for(var i=0;i<datalist.length;i++){
						 if($("#searchV").val()==datalist[i].barcodeNumber){
							 flag=1;
						    $("#tablezz").empty();
							$("#tablezz").append(`<tr id="thname" style="font-size: 0.625rem;font-weight: bold;"></tr>`)
							$("#thname").append(`
							<th>条码编号</th>
							<th>贴标时间</th>
							<th>脚标机ID</th>
							<th>屠宰档口ID</th>
							<th>销售去向ID</th>
							<th>所属禽类</th>
							`)
							$("#tablezz").append(`
						<tr>
						<th>`+datalist[i].barcodeNumber+`</th>
						<th>`+datalist[i].LabelingDate+`</th>
						<th>`+datalist[i].barcodeMachineId+`</th>
						<th>`+datalist[i].stallsId+`</th>
						<th>`+datalist[i].salesTerminalId+`</th>
						<th>`+datalist[i].poultryName+`</th>
						</tr>
							`) 
						 }
					 }
					 if(flag==0) alert("未找到该条码信息");
				}
			}
	}else{
		
	}
</script>
</body>
</html>